package peace.gui.controls
{
	import flash.events.Event;

// [Event(name="move", type="peace.gui.controls.NavigationEvent")]

public class NavigationEvent extends Event
{
	public static const MOVE:String = "move";

	public static const PREVIOUS:String = "previous";
	public static const NEXT:String = "next";

	public static const FIRST:String = "first";
	public static const LAST:String = "last";
	
	public static const BEGIN:String = "begin";
	public static const END:String = "end";

	public var currentPosition:uint;
	public var lastPosition:uint;

	public function NavigationEvent (type:String, currentPosition:uint=0, lastPosition:uint=0, 
												bubbles:Boolean = false, cancelable:Boolean = false)
	{
		super(type, bubbles, cancelable);
		this.currentPosition = currentPosition;
		this.lastPosition = lastPosition;
	}

	override public function clone():Event
	{
		return new NavigationEvent(type, currentPosition, lastPosition, bubbles, cancelable);
	}

}

}